package com.ruoyi.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备参数对象 device_parameter
 * 
 * @author LongAndHao
 * @date 2024-11-04
 */
public class DeviceParameter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String parameterName;

    /** 参数值 */
    @Excel(name = "参数值")
    private Long parameterValue;

    /** 参数单位 */
    @Excel(name = "参数单位")
    private String unit;

    /** 对生产的影响百分比 */
    @Excel(name = "对生产的影响百分比")
    private Long impactPercentage;
    /** 对生产的影响百分比 */
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getParameterName() {
        return parameterName;
    }

    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    public Long getParameterValue() {
        return parameterValue;
    }

    public void setParameterValue(Long parameterValue) {
        this.parameterValue = parameterValue;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getImpactPercentage() {
        return impactPercentage;
    }

    public void setImpactPercentage(Long impactPercentage) {
        this.impactPercentage = impactPercentage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("parameterName", getParameterName())
            .append("parameterValue", getParameterValue())
            .append("unit", getUnit())
            .append("impactPercentage", getImpactPercentage())
            .toString();
    }
}
